<p>equipment-list works!</p>
{{ message$| async }}
<button (click)="spanishMessage()">spanish</button>
<button (click)="englishMessage()">english</button>
<button (click)="getList()">fetch list</button>
<table mat-table [dataSource]="posts" class="mat-elevation-z8">

  <!--- Note that these columns can be defined in any order.
        The actual rendered columns are set as a property on the row definition" -->

  <!-- Position Column -->
  <ng-container matColumnDef="id">
    <th mat-header-cell *matHeaderCellDef>id</th>
    <td mat-cell *matCellDef="let element" ><a [routerLink]="['/equipment-detail',element.id]"> {{element.id}}</a> </td>
  </ng-container>

  <!-- Name Column -->
  <ng-container matColumnDef="model">
    <th mat-header-cell *matHeaderCellDef>model</th>
    <td mat-cell *matCellDef="let element"> {{element.model}} </td>
  </ng-container>

  <!-- Weight Column -->
  <ng-container matColumnDef="manufactureDate">
    <th mat-header-cell *matHeaderCellDef> manufactureDate </th>
    <td mat-cell *matCellDef="let element"> {{element.manufactureDate}} </td>
  </ng-container>

  <ng-container matColumnDef="operation">
    <th mat-header-cell *matHeaderCellDef> remove </th>
    <td mat-cell  *matCellDef="let element"><a (click)="rmitem(element.id)"> -remove x </a></td>
  </ng-container>

  <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
  <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>




